-- GENERATED SPELL FOR [Marga Bearbrawn] --


function spell0_30579(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_30579', 648, 1)
end

function spell1_30579(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_30579', 2000, 1)
end

function Sorts_30579(pUnit, Event)
local choix_sorts_30579 = math.random(0, 1)
if choix_sorts_30579 == 0 then
pUnit:RegisterEvent('spell0_30579', 1, 1)
end
if choix_sorts_30579 == 1 then
pUnit:RegisterEvent('spell1_30579', 1, 1)
end
end

function mob30579_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30579', math.random(1500, 3000), 1)
end

function mob30579_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30579_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30579_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30579, 1, 'mob30579_Action')
RegisterUnitEvent(30579, 2, 'mob30579_Leave')
RegisterUnitEvent(30579, 3, 'mob30579_Kill')
RegisterUnitEvent(30579, 4, 'mob30579_Die')
